import config from "@/config"
import http from "@/utils/request"

export default {
	list: {
		url: `${config.API_URL2}/api/device/branch/list`,
		name: "设备列表",
		get: async function(params){
			return await http.get(this.url, params);
		}
	},
	delete: {
		url: `${config.API_URL2}/api/device/branch/del`,
		name: "删除设备信息",
		delete: async function(ids){
			let deleteUrl = `${this.url}/${ids}`;
			return await http.delete(deleteUrl);
		}
	},
	add: {
		url: `${config.API_URL2}/api/device/branch/add`,
		name: "增加设备",
		post: async function(data){
			return await http.post(this.url, data);
		}
	},
	
}
